package com.gzhryc.shared_device.common.device;

import com.gzhryc.shared_device.base.IDeviceService;

import java.util.concurrent.ConcurrentHashMap;

public class DeviceServiceFactory {

    static ConcurrentHashMap<String, IDeviceService> Store = new ConcurrentHashMap<>();

    public static void add(String funCode,IDeviceService deviceService){
        Store.put(funCode,deviceService);
    }

    public static IDeviceService get(String funCode){
        return Store.get(funCode);
    }
}
